﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace VIP.Extension
{

    public static class VIPDicExtension
    {

        public static T2 GetValue<T1, T2>(this Dictionary<T1, T2> tDic, T1 key)
        {
            T2 value;
            if (tDic.TryGetValue(key, out value))
            {
                return value;
            }
            return default(T2);
        }

    }

}